package com.zjcloud.framework.config;

import org.springframework.context.annotation.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;

/**
 * 测试配置类，用于验证Spring是否能扫描到framework包下的配置
 * 
 * @author test
 */
@Configuration
public class TestConfig {
    
    private static final Logger log = LoggerFactory.getLogger(TestConfig.class);
    
    static {
        System.out.println("TestConfig class loaded!");
        log.info("TestConfig class loaded!");
    }
    
    @PostConstruct
    public void init() {
        System.out.println("TestConfig bean initialized by Spring!");
        log.info("TestConfig bean initialized by Spring!");
    }
}